package com.household.security.exception;

import com.household.domain.enums.ResponseErrorCodeEnum;
import org.springframework.security.core.AuthenticationException;


/**
 * Created By wanzhen
 * 2023. 2023/3/25. 13:51
 */
public class DefaultAuthenException extends AuthenticationException {
    public DefaultAuthenException(String msg, Throwable cause) {
        super(msg, cause);
    }

    public DefaultAuthenException(String msg) {
        super(msg);
    }
    public DefaultAuthenException(ResponseErrorCodeEnum codeEnum) {
        super(codeEnum.getMsg());
    }
}
